body {
    cursor: default;
    color: whitesmoke;
    background: none;
    /* background-image: linear-gradient(to right, #e66465, #9198e5, #ffffff); */
    /* background-image: linear-gradient(to right, #701737, #1F337A, rgb(15, 91, 140)); */
    /* background-image: linear-gradient(to right, #6469a0, #64968f, #397c96, #ffffff); */
    background-image: url("../res/background.jpg");
    background-position: center;
    background-clip: border-box;
    background-size: auto 100%;
    display: -webkit-flex;
    display: flex;

    -webkit-flex-direction: column;
    flex-direction: column;

    height: 100%;
    /* for firefox */
    width: 100%;

    position: absolute;
    padding: 0px;
    border: 0px;
    margin: 0px;
}

/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0;
    /* <-- Apparently some margin are still there even though it's hidden */
}

body,
canvas,
div {
    outline: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

canvas {
    background-color: rgba(0, 0, 0, 0);
}

#splash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* background: #171717 url(/app/editor/static/img/logo-with-text.png) no-repeat center; */
    background: #171717;
    background-size: 40%;
}

.content {
    display: -webkit-flex;
    display: flex;

    -webkit-justify-content: center;
    justify-content: center;

    -webkit-align-items: center;
    align-items: center;

    -webkit-flex-direction: column;
    flex-direction: column;

    -webkit-flex: auto;
    flex: auto;
}

.contentWrap {
    width: 100%;
    overflow: auto;

    /* display: -webkit-flex;*/
    display: flex;

    flex-wrap: wrap;

    /* -webkit-align-items: center;
    align-items: center; */

    /* -webkit-flex-direction: column; */
    /* flex-direction: column; */
    /* justify-content: space-between; */
    justify-content: space-evenly;
    /* background: pink; */
}

#GameDiv {
    visibility: hidden;
}

.wrapper {
    position: relative;

    border: 1px solid #444;
    background: #222;
}

.toolbar {
    /*position: absolute;*/
    /*left: 10px;*/
    /*top: 10px;*/
    min-height: 27px;
    padding: 4px 0px 4px 10px;

    display: -webkit-flex;
    display: flex;

    -webkit-align-items: center;
    align-items: center;

    -webkit-flex-direction: row;
    flex-direction: row;

    z-index: 999;

    color: #aaaaaa;
    background-image: linear-gradient(to right, #70173780, #1F337A80, #0f5b8c80);
    box-shadow: 0px 1px 0px 0px #227988;
}

.toolbar * {
    font-size: 12px;
    font-family:
        /* https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/ */
        "Courier New",
        -apple-system, BlinkMacSystemFont,
        "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
        "Helvetica Neue", sans-serif;
}

.toolbar .item {
    display: inline-block;
    margin-right: 10px;
}

.toolbar select {
    height: 25px;
    padding: 0px 5px;

    box-shadow: none;
    /* background-image: none; */

    border: 1px solid #888888;
    /* background: rgba(0, 0, 0, 0.1); */
    /* reference: https://developer.mozilla.org/zh-CN/docs/Web/CSS/appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    color: #aaaaaa;
    background-image: linear-gradient(rgba(50, 50, 50, 0.1), rgba(0, 0, 0, 0.1));
}

.toolbar select:focus {
    outline: none;
    border: 1px solid #0e9e8b;
}

#opts-device option {
    background: #3b3b3b;
    color: #aaaaaa;
}

.toolbar .item button {
    border: 1px solid #888888;
    border-radius: 2px;
    text-align: center;
    padding: 4px 8px;

    cursor: pointer;
    color: #aaaaaa;
}

.toolbar button.checked {
    box-shadow: 0px 1px 0px 0px #00fcda;
    color: #ffffff;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.1);
}

.toolbar button:focus {
    outline: none;
}

.toolbar button:active {
    /* box-shadow: inset 0 2px 4px yellowgreen; */
    color: rgb(154, 205, 50);
}

.toolbar input {
    width: 41px;
    height: 24px;
    padding: 4px 4px;
    box-shadow: inset 0px 0px 2px 1px rgba(255, 255, 255, 0.2);
    border: 1px solid #bbbbbb;
    background: rgba(0, 0, 0, 0.1);
    color: #cccccc;
    background-image: linear-gradient(rgba(50, 50, 50, 0.1), rgba(0, 0, 0, 0.1));

}

@media screen and (max-width: 760px) {
    .toolbar {
        display: none;
    }

    .wrapper {
        border: 0px;

        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

#bulletin {
    position: absolute;
    left: 50%;
    top: 50%;
    display: none;
}

#bulletin .inner {
    position: relative;
    left: -50%;
    top: -50%;
    display: none;
}

#recompiling {
    position: relative;
    /*left: 50%;
    top: 50%;*/
    display: none;
}

.progress-bar {
    background-color: #f9e1e3;
    position: absolute;
    left: 50%;
    bottom: 10%;
    width: 60%;
    height: 5px;
    transform: translate(-50%, -50%);
    border-radius: 3px;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: 3px;
    transition: width .4s ease-in-out;
    background-color: #e46a70;
}

.stripes span {
    background-size: 30px 30px;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
            transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
            transparent 75%, transparent);

    animation: animate-stripes 1s linear infinite;
}

@keyframes animate-stripes {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 0;
    }
}

/* 节点树的 */

#app {
    background: black;
    height: inherit;
}

#nodeTree {
    position: relative;
    min-width: 300px;
    width: auto;
    /* width: 900px; */
    height: 100%;
    overflow: auto;
    display: flex;
}

/* 层级 */
#hierarchy {
    position: relative;
    min-width: 300px;
    max-width: 500px;
    width: auto;
    min-height: 500px;
    height: 90%;
    max-height: 100%;
    overflow-y: scroll;
    flex-grow: 1;
}

/* 属性 */
#inspector {
    position: relative;
    width: auto;
    border-top: 2px solid darkgray;
    height: 90%;
    overflow-y: scroll;
    flex-grow: 1;
}